<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="format-detection" content="telephone=no" />
<title><?php echo $common[0]['title']?></title>
<base href="<?php echo site_url('static/weixincard/'.$wechat['weixincardtpl'])?>/">
<meta name="keywords" content="" />
<meta itemprop="description" name="description" content="" />
<link rel="stylesheet" type="text/css" href="css/base.css">
<link rel="stylesheet" type="text/css" href="css/index.css">
<script src="<?php echo URLPRE?>static/public/js/jquery/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="<?php echo URLPRE;?>static/template/<?php echo TEMPLATE_NAME?>/mobile/js/slider.js"></script>
<script type="text/javascript">
  $(function(){
      var slid = $("#slider").slider({
          loop: true
      });
  });
</script>
</head>
<body>
<div class="global">
  <header>
    <div class="micro-header">
        <div class="box slider" id="slider">
        <?php
        $tpl = <<<TEMPLATE
<ul>
    {listinfo}<li><a href="{link}"> <img src="{pic}" alt="{title}"></a></li>{/listinfo}
</ul>
TEMPLATE;
        diy('glass_index_imagelist_topbar', 'imagelist', $tpl);
        ?>

      </div>
    </div>
  </header>
  <div class="m-store-header ">
        <div class="m3_search">
        <form action="<?php echo  site_url('/mobile/line/index/').'/'?>" method="get" id="searchForm" accept-charset="utf-8">
          <input type="text" name="keyword" class="m3_search_txt" placeholder="想去哪儿，从这里开始......" />
          <input type="submit" class="m3_search_btn" />
        </form>
        </div>
        <div class="m3_shezhi"><a href="<?php echo site_url()?>"><img src="images/shezhi.png" ></a></div>
        <div class="m3_retui">
            <?php
            $template = <<<TEMPLATE
{links}<a href="{link}">{name}</a>{/links}
TEMPLATE;

        diy('glass3_index_fontli_001', 'fontlist', $template);
        ?>
        </div>
      </div>
  <nav>
    <div class="micro-main-nav">
      <ul>
<?php
$TEMPLATE = <<<HTML
{listinfo}
<li><a href="{link}"><span><i><img src="{pic}" /></i></span><br />{title}</a></li>
{/listinfo}
HTML;
diy('glass_index_imagelist_navbar', 'imagelist', $TEMPLATE);
?>
      </ul>
    </div>
  </nav>
  <div class="bg_2"></div>
  <div class="banner_2">
  	<ul>
        <?php
        $TEMPLATE = <<<HTML
{listinfo}
<li><a href="{link}"><img src="{pic}" /></a></li>
{/listinfo}
HTML;
        diy('glass_index_imagelist_banner_2', 'imagelist', $TEMPLATE);
        ?>
    </ul>
  </div>
  
  <section id="webContent">
    <div class="hot-destination" id="hotRouteList">
      <div class="de-title-line">
<?php
$template = <<<TEMPLATE
<ul>{links}<li><a href="{link}">{name}</a></li>{/links}</ul>
{title}
TEMPLATE;

diy('glass3_index_fontli_0010', 'fontlist', $template);
?>
     </div>
      <div class="de-content">
        <div class="de_content_img_1">
                <?php
                $TEMPLATE = <<<HTML
{listinfo}
<a href="{link}"><img class="img-responsive" src="{pic}" /></a>
{/listinfo}
HTML;
                diy('glass_index_imagelist_999', 'imagelist', $TEMPLATE);
                ?>

        </div>
        <div class="de_content_img_2">
          <div class="de_content_img_2_1">
            <?php
            $TEMPLATE = <<<HTML
{listinfo}
<a href="{link}"><img class="img-responsive" src="{pic}" /></a>
{/listinfo}
HTML;
            diy('glass_index_imagelist_998', 'imagelist', $TEMPLATE);
            ?>
          </div>
          <div class="de_content_img_2_2">
          	  <?php
              $TEMPLATE = <<<HTML
{listinfo}
<a href="{link}"><img class="img-responsive" src="{pic}" /></a>
{/listinfo}
HTML;
              diy('glass_index_imagelist_997', 'imagelist', $TEMPLATE);
              ?>
          </div>
        </div>
        <div class="de_content_img_3">
          <div class="de_content_img_3_1">
          	  <?php
              $TEMPLATE = <<<HTML
{listinfo}
<a href="{link}"><img class="img-responsive" src="{pic}" /></a>
{/listinfo}
HTML;
              diy('glass_index_imagelist_996', 'imagelist', $TEMPLATE);
              ?>
          </div>
          <div class="de_content_img_3_2">
          	  <?php
              $TEMPLATE = <<<HTML
{listinfo}
<a href="{link}"><img class="img-responsive" src="{pic}" /></a>
{/listinfo}
HTML;
              diy('glass_index_imagelist_995', 'imagelist', $TEMPLATE);
              ?>
          </div>
        
        </div>
      </div>
    </div>
    <div class="hot-destination" id="hotRouteList">
      <div class="de-title-line">
<?php
$template = <<<TEMPLATE
{title}
{links}<span><a style="color:#555" href="{link}">{name}</a></span>{/links}
TEMPLATE;

diy('glass3_index_fontli_0011', 'fontlist', $template);
?>
     </div>
      <div class="sj_content">
          <?php
          $TEMPLATE = <<<HTML
           <ul>
            {listinfo}
            <li><a href="#">
                <div class="sj_content_img">
                    <img src="{pic}" />
                </div>
                <div class="sj_content_text">
                    <p>{title}</p>
                    <span class="place">{sub_title}</span>
                    <span class="price">¥{price}</span>
                </div>
                </a>
            </li>
            {/listinfo}
            </ul>
HTML;
          diy('glass_index_imagelist_0999', 'imagelist', $TEMPLATE);
          ?>





      </div>
    </div>
    <div class="hot-destination" id="hotRouteList">
      <div class="de-title-line1">
          <?php
          $template = <<<TEMPLATE
<ul>{links}<li><a href="{link}">{name}</a></li>{/links}</ul>
{title}
TEMPLATE;

          diy('glass3_index_fontli_0012', 'fontlist', $template);
          ?>
      </div>
      <div class="de-content">
          <?php
          $tpl = <<<HTML
{linelist}
<a href="{link}">
            <div class="content_xianlulist">
                <div class="content_xianlulist_img"><img src="{line_thumb}" /></div>
                <div class="content_xianlulist_txt_1">
                    <div class="content_xianlulist_txt_1_didian">张家界</div>
                    <div class="content_xianlulist_txt_2_mingcheng">{line_trait}</div>
                    <div class="content_xianlulist_txt_1_qishi">{go_city}-张家界</div>
                    <div class="content_xianlulist_txt_1_shichang">{short_name}</div>
                    <div class="content_xianlulist_txt_2_zhekou">{rebate}0折</div>
                    <div class="content_xianlulist_txt_2_jiage">{low_price}<span>{dollar}</span></div>
                </div>
            </div>
          </a>
{/linelist}
HTML;
          if (trim($info['lines'])) {
              $CI = new CI_Module();
              $CI->load->model('diy.diy_model');
              $CI->diy_model->__init_CI(1);
              echo $CI->diy_model->process_linelist(array('line_numbers' => $info['lines']), $tpl);
          } else {
              diy('mobile_hotline_99', 'linelist', $tpl);
          }
          ?>

      </div>
    </div>
    <div class="nav_1">
        <?php
        $TEMPLATE = <<<HTML
{listinfo}
<div class="nav_img_{bindex}"><a href="{link}"><img src="{pic}" /></a></div>
{/listinfo}
HTML;
        diy('glass_index_imagelist_01', 'imagelist', $TEMPLATE);
        ?>
  </div>
    <div class="hot-destination1">
      <ul>
<!--      	<li class="zb_2"><a href="#"><img src="images/zb_2.jpg" /></a></li>-->
<!--      	<li class="gn_2"><a href="#"><img src="images/gn_2.jpg" /></a></li>-->
<!--      	<li class="cj_2"><a href="#"><img src="images/cj_2.jpg" /></a></li>-->
              <?php
              $TEMPLATE = <<<HTML
{listinfo}
<li><a href="{link}"><img src="{pic}" /></a></li>
{/listinfo}
HTML;
              diy('glass_index_imagelist_0005', 'imagelist', $TEMPLATE);
              ?>
      </ul>
    </div>
  </section>
    <footer>
        <?php if($card_info = unserialize($_COOKIE['card_info'])){?>
            <div class="store-copy1">
                <p> <?php echo $_COOKIE['expert_company'] ? $_COOKIE['expert_company'] : $company?>(<?php echo $card_info['realname']?>)</p>
                <p> <?php echo $card_info['addr'] ? $card_info['addr']  : $company_address?></p>
                <p> <?php echo $_COOKIE['from_tel'] ? $_COOKIE['from_tel'] : $site_service_phone?></p>
            </div>
        <?php }?>
        <div class="store-copy">
            <?php
            @$user_id = $this->session->userdata('user_id');
            @$admin_user_id = $this->session->userdata('admin_user_id') ;
            if(!$user_id && !$admin_user_id){
                ?>
                <a href="<?php echo site_url('/mobile/member/login')?>">登陆</a>
                <a href="<?php echo site_url('/mobile/member/register')?>">注册</a>
            <?php }?>
            <p> 旅游许可证编号：<?php echo $licence?> <?php echo $site_record_num;?><br />
                <?php echo $company;?> 品牌授权<br>技术支持：浩楠网络科技</p>
        </div>
        <div class="store-tools">
            <ul>
                <li class="this"><a href="<?php echo site_url(INWECHAT&&$_COOKIE['from_card'] ? 'mobile/member/card/?eid='.$_COOKIE['from_card'] : 'mobile/index')?>"><i></i>
                        <p> 首页</p>
                    </a></li>
                <li><a href="tel:<?php echo $_COOKIE['from_tel'] ? $_COOKIE['from_tel'] : $site_service_phone?>"><i></i>
                        <p> 电话</p>
                    </a></li>
                <li><a href="<?php echo site_url('mobile/member/center');?>"><i></i>
                        <p> 我的</p>
                    </a></li>
                <li style="display:none;"><a href="#"><i></i>
                        <p> 留言</p>
                    </a></li>
                <li><a href="javascript:scroll(0,0);"><i></i>
                        <p> 顶部</p>
                    </a></li>
            </ul>
        </div>
    </footer>
</div>
<?php echo $sharehtml?>
</body>
</html>
